# 定义一个元组
my_tuple = (1,2,3)
# 不能修改
# my_tuple.pop(0)
# print(my_tuple)

# 遍历
for i in my_tuple:
    print(i)

# list ----> tuple 
my_list = [1,2,3]
nums_tuple = tuple(my_list)
print(tuple(nums_tuple))